package com.xiaolong.log.msg;

public class LogMessage {

    /**
     * 用户id
     */
    private  Long userId;

    /**
     * 用户名
     */
    private  String userName;

    /**
     * 用户名
     */
    private String ip;

    /**
     * 请求类型
     */
    private  String httpMethod;

    /**
     * 请求类路径
     */
    private  String httpUrl;

    /**
     * 类名
     */
    private  String className;

    /**
     * 方法名称
     */
    private  String methodName;

    /**
     * 请求参数
     */
    private  String requestParam;

    /**
     * 返回参数
     */
    private  String respParam;


    /**
     * 开始时间
     */
    private  Long startTime;


    /**
     * 结束时间
     */
    private  Long endTime;

    /**
     * 0 登录日志 1操作日志
     */
    private Integer type;

    /**
     * 执行状态 0失败 1成功
     */
    private Integer status;


    /**
     * 备注 发生异常会产生异常日志
     */
    private String remark;

    /**
     * 模块名称
     */
    private String module;

    /**
     * 操作类型
     */
    private Integer topic;

    /**
     * 平台
     */
    private Integer platform;

    private String instanceIp;

    private String instanceName;

    private Integer instancePort;

    public String getInstanceIp() {
        return instanceIp;
    }

    public void setInstanceIp(String instanceIp) {
        this.instanceIp = instanceIp;
    }

    public String getInstanceName() {
        return instanceName;
    }

    public void setInstanceName(String instanceName) {
        this.instanceName = instanceName;
    }

    public Integer getInstancePort() {
        return instancePort;
    }

    public void setInstancePort(Integer instancePort) {
        this.instancePort = instancePort;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getHttpMethod() {
        return httpMethod;
    }

    public void setHttpMethod(String httpMethod) {
        this.httpMethod = httpMethod;
    }

    public String getHttpUrl() {
        return httpUrl;
    }

    public void setHttpUrl(String httpUrl) {
        this.httpUrl = httpUrl;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getRequestParam() {
        return requestParam;
    }

    public void setRequestParam(String requestParam) {
        this.requestParam = requestParam;
    }

    public String getRespParam() {
        return respParam;
    }

    public void setRespParam(String respParam) {
        this.respParam = respParam;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Long getStartTime() {
        return startTime;
    }

    public void setStartTime(Long startTime) {
        this.startTime = startTime;
    }

    public Long getEndTime() {
        return endTime;
    }

    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public Integer getTopic() {
        return topic;
    }

    public void setTopic(Integer topic) {
        this.topic = topic;
    }

    public Integer getPlatform() {
        return platform;
    }

    public void setPlatform(Integer platform) {
        this.platform = platform;
    }

    @Override
    public String toString() {
        return "LogMessage{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", ip='" + ip + '\'' +
                ", httpMethod='" + httpMethod + '\'' +
                ", httpUrl='" + httpUrl + '\'' +
                ", className='" + className + '\'' +
                ", methodName='" + methodName + '\'' +
                ", requestParam='" + requestParam + '\'' +
                ", respParam='" + respParam + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", type=" + type +
                ", status=" + status +
                ", remark='" + remark + '\'' +
                ", module='" + module + '\'' +
                ", topic=" + topic +
                ", platform=" + platform +
                ", instanceIp='" + instanceIp + '\'' +
                ", instanceName='" + instanceName + '\'' +
                ", instancePort=" + instancePort +
                '}';
    }
}
